using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ParticleSystemListener : MonoBehaviour
{
    void Start()
    {
        var main = this.GetComponent<ParticleSystem>().main;
        main.stopAction = ParticleSystemStopAction.Callback;
    }

    private void OnParticleSystemStopped()
    {
        Debug.LogError(gameObject.name);
    }
}
